package sk.stuba.fiit.foo07.genex.dao;

import java.sql.Connection;

/**
 * @author palo
 * 
 */

public abstract class BasicDao {
    protected Connection con;
    String dbName;

    /*
    private void makeDerbyConnection() throws Exception {
        Properties p = System.getProperties();
        p.put("derby.system.home", "target/");

        // load derby embedded driver
        Class.forName("org.apache.derby.jdbc.EmbeddedDriver");

        // create and connect to new derby database
        con = DriverManager.getConnection("jdbc:derby:" + dbName
                + ";create=true");
        return;
    }
    */

    public BasicDao() {
        super();
    }

    public BasicDao(Connection con) {
        this.con = con;
        return;
    }
}
